package com.cuangye.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by TT on 2017-11-23.
 */
@Controller
public class IndexController {
    private final Logger logger = org.apache.log4j.Logger.getLogger(getClass());

    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String index(Model model){
        logger.info("跳转首页");
        return "index";
    }
}
